package com.shoprh.demo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shoprh.common.core.domain.BaseEntity;
import com.shoprh.common.handlers.ListStringHandler;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 收货地址对象
 *
 */
@Data
@TableName("rh_receiver")
public class Receiver extends BaseEntity<Receiver> {
    private static final long serialVersionUID = 1L;

    /**
     * 地址
     */
    private String address;

    /**
     * 收货人
     */
    private String consignee;

    /**
     * 是否默认
     */
    private Boolean isDefault;

    /**
     * 电话
     */
    private String phone;

    /**
     * 会员
     */
    private Long userId;

    /**
     * 城市Id 省，市，区
     */
    @TableField(typeHandler = ListStringHandler.class)
    private List<String> areaName = new ArrayList<>();

}
